<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="/hdocs/style/css/setting.css" type="text/css" rel="stylesheet" />
<link href="/hdocs/style/css/common.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/hdocs/jquery/js/jquery-1.8.2.js"></script>
<script type="text/javascript" src="/hdocs/style/js/common.js"></script>
<title>瓜朋网-用户设置</title>
</head>
<body>
      #set ($menuIndex="index") #parse("/inc/header.html")
      <p class="h10"></p>
      <p class="h10"></p>
      <p class="h10"></p>
      <p class="h10"></p>
      <div class="centent">
            <div class="messLe">
                 <p class="messTcT">账户设置</p>
                 <a href="/setting/modifyInfoInit.jsp">个人资料</a>
                 <a href="/setting/modifyImageInit.jsp">修改头像</a>
                 <a href="/setting/modifyPasswordInit.jsp" class="def">修改密码</a>
            </div>
            <div class="cenRi">
                  <p class="about">修改密码</p>
                  <p class="h10"></p>
                  <div class="chgAll">
                       <p class="h10"></p>
                       <p class="h10"></p>
                       <p class="h10"></p>
                       <form id="mainFrom" action="/setting/modifyPassword.jsp" method="post">
                       <div class="chgIncv"><span>当前密码</span><input id="password" name="password" type="password" type="text" class="chgInt" /></div>
                       <p class="h10"></p>
                       <p class="h10"></p>
                       <div class="chgIncv"><span>新密码</span><input id="newpassword" name="newpassword" type="password" type="text" class="chgInt" /></div>
                       <p class="h10"></p>
                       <p class="h10"></p>
                       <div class="chgIncv"><span>确认密码</span><input id="confirm" name="confirm" type="password" class="chgInt" /></div>
                       <p class="h10"></p>
                       <p class="h10"></p>
                       <p class="h10"></p>
                       <a href="javascript:submitForm();" class="chgBc"><img src="/hdocs/style/img/chgCt.jpg"/></a>
                       </form>
                  </div>
                  <p class="h10"></p>
                  <p class="h10"></p>
                  <p class="h10"></p>
                  <p class="h10"></p>
                  <p class="h10"></p>
                <p class="h10"></p>
                <p class="h10"></p>
                <p class="h10"></p>
            </div>
      </div>
      #parse("/inc/footer.html")
</body>
</html>
<script type="text/javascript">
function submitForm(){
	var password = $("#password").val();
	if(password==null||password==''){
		alert("请输入当前密码");
		return;
	}
	var newpassword = $("#newpassword").val();
	if(newpassword==null||newpassword==''){
		alert("请输入新密码");
		return;
	}
	var confirm = $("#confirm").val();
	if(confirm==null||confirm==''){
		alert("请输入确认密码");
		return;
	}
	if(confirm!=newpassword){
		alert("确认密码不一致");
		$("#confirm").val("");
		$("#confirm").focus();
		return;
	}
	$("#mainFrom").submit();
}
</script>

